package org.hagen.mmia.yars.client;

import java.util.HashSet;
import java.util.Set;

import org.hagen.mmia.yars.agent.Query;

public class SyncMeasures {

	public Set<String> coverage = new HashSet<String>();
	public Set<String> relCoverage = new HashSet<String>();
	
	// global analytics methods
	public void clear() {

		coverage.clear();
		relCoverage.clear();
	}

	public int coverage( Query q ) {

		coverage.addAll(q.getResultList().viewedSet);

		return coverage.size();
	}

	public int relevantCoverage( Query q ) {

		relCoverage.addAll(q.getResultList().relevantSet);

		return relCoverage.size();
	}
}
